#!/usr/bin/env bash

export NODE_PATH=$NOWDIR:$NODE_PATH
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh

nvm use 8.9.0

if ! hash yarn 2>/dev/null; then
curl -o- -L https://yarnpkg.com/install.sh | bash
yarn config set registry 'https://registry.npm.taobao.org'
fi

if ! hash npx 2>/dev/null; then
yarn global add npx
fi

